home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
minix
/
up1510b.tgz
/
up1510b
/
src
/
lib
/
posix
/
lseek.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-07-23
|
295b
|
17 lines
#include <lib.h>
#include <sys/types.h>
PUBLIC off_t lseek(fd, offset, whence)
int fd;
off_t offset;
int whence;
{
int k;
_M.m2_i1 = fd;
_M.m2_l1 = offset;
_M.m2_i2 = whence;
k = callx(FS, LSEEK);
if (k != 0) return((off_t) k);/* send itself failed */
return((off_t) _M.m2_l1);
}